package com.cy.sys.shiro;

import org.apache.shiro.SecurityUtils;

import com.cy.sys.pojo.SysUsersinsert;



public class shirogetUtils {
	
	public static String getusername() {
		return sysuserna().getUsername();
	}
	
	public static SysUsersinsert sysuserna() {
		return (SysUsersinsert) 
				SecurityUtils.getSubject().getPrincipal();
	}
}
